package com.yupi.springbootinit.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yupi.springbootinit.common.DeleteRequest;
import com.yupi.springbootinit.model.dto.qa.QaInspectionInstrumentAddRequest;
import com.yupi.springbootinit.model.dto.qa.QaInspectionInstrumentQueryRequest;
import com.yupi.springbootinit.model.dto.qa.QaInspectionInstrumentUpdateRequest;
import com.yupi.springbootinit.model.entity.QaInspectionInstrument;

import java.util.List;

/**
* @author Administrator
* @description 针对表【qaInspectionInstrument(本次检验使用的计量器具)】的数据库操作Service
* @createDate 2024-02-25 17:04:02
*/
public interface QaInspectionInstrumentService extends IService<QaInspectionInstrument> {

    /**
     * 添加
     *
     * @param qaInspectionInstrumentAddRequest
     * @return
     */
    long addQaInspectionInstrument(QaInspectionInstrumentAddRequest qaInspectionInstrumentAddRequest);

    /**
     * 删除
     *
     * @param deleteRequest
     * @return
     */
    boolean deleteQaInspectionInstrument(DeleteRequest deleteRequest);

    /**
     * 更新
     *
     * @param qaInspectionInstrumentUpdateRequest
     * @return
     */
    boolean updateQaInspectionInstrument(QaInspectionInstrumentUpdateRequest qaInspectionInstrumentUpdateRequest);

    /**
     * 根据 id 获取
     *
     * @param id
     * @return
     */
    QaInspectionInstrument getQaInspectionInstrumentById(long id);

    /**
     * 获取列表
     *
     * @param qaInspectionInstrumentQueryRequest
     * @return
     */
    List<QaInspectionInstrument> listQaInspectionInstrument(QaInspectionInstrumentQueryRequest qaInspectionInstrumentQueryRequest);

    /**
     * 分页获取列表
     *
     * @param qaInspectionInstrumentQueryRequest
     * @return
     */
    Page<QaInspectionInstrument> listQaInspectionInstrumentByPage(QaInspectionInstrumentQueryRequest qaInspectionInstrumentQueryRequest);
}